//
//  Layer.swift
//  CooperSwift
//
//  Created by 计海峰 on 2022/9/28.
//

import Foundation

public extension CALayer {
    
    /// border color
    @IBInspectable var borderColorFromUIColor: UIColor {
        get {
            return UIColor(cgColor: self.borderColor!)
        }
        set {
            self.borderColor = newValue.cgColor
        }
    }
   
    /// shadow color
    @IBInspectable var shadowColorFromUIColor: UIColor {
        get {
            return UIColor(cgColor: self.shadowColor!)
        }
        set {
            self.shadowColor = newValue.cgColor
        }
    }
    
}
